package com.bruce.pattern.behavioral.interpreter;

/**
 * Created by bruce on 2018/11/10 18:37
 */
public class DivNode extends SymbolNode {

    public DivNode(Node left, Node right) {
        super(left, right);
    }

    @Override
    public int interpret() {
        return left.interpret() / right.interpret();
    }
}
